public class Rectangle
     
    protected float x
    protected float y
    protected float w
    protected float h
 
    public Rectangle(float x, float y, float w, float h)
        this.x = x
        this.y = y
        this.w = w
        this.h = h
 
    public float getArea()
        return this.w*this.h
     
    public float getRight()
        return this.x + this.w
 
    public float getBottom()
        return this.y + this.h

    public void move(float x, float y)

        this.x = this.x - x
        this.y += y

    public void shrink(float x, float y)

        w = w - x
        h -= y
     
    public void print()
        shout("pos.", x, "/", y)
        shout("rb.", getRight(), "/", this.getBottom())
        shout(this.w, "x", this.h)

        shout("area.", getArea())

    public void readyGo()
        Rectangle r = new Rectangle(10.0, 0.0, 150.4, 45.21)
         
        if(r.getArea() > 10)

            r.print()            
        else
            String msg = "Rectangulo.es.muy.pequenio"
 
        r.shrink(10.0, 5.5)
        r.print()

        r.move(6543.21, 42.0)
        r.print()

        return